package exercise1;

public class Test {
    public static void main(String[] args) {
        //如果没有中介，房东自己出租
        FangDong fangDong = new FangDong();
        fangDong.GongYu();
        fangDong.Hjf();
        fangDong.Bs();

        System.out.println("----------");
        //有中介之后，通过中介代理出租
        ZhongJie zhongJie = new ZhongJie(new FangDong());
        zhongJie.GongYu();
        zhongJie.Hjf();
        zhongJie.Bs();
    }
}
